Skip to content

Conversation

@brendt
Copy link
Member

@brendt brendt commented Apr 24, 2025

This is an attempt to fix #1167

Instead of sorting all attributes, we now only pull out :if and :foreach, and push them to the end of the attribute list, keeping their relative order. This way you can make both combinations, while ensure :if and :foreach are always last, thus having access to all other data defined on the element.

@wryk @innocenzi would like your input

@brendt brendt marked this pull request as draft April 24, 2025 07:00
@coveralls
Copy link

coveralls commented Apr 24, 2025

Pull Request Test Coverage Report for Build 14636106677

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.006%) to 80.188%

Totals Coverage Status
Change from base Build 14631166702: -0.006%
Covered Lines: 11754
Relevant Lines: 14658

💛 - Coveralls

@brendt brendt marked this pull request as ready for review April 24, 2025 07:35
@brendt brendt merged commit 077cc7d into main Apr 24, 2025
67 checks passed
@brendt brendt deleted the improved-attribute-precedence branch April 24, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve multiple control flow directives behavior on the same element

3 participants